package com.jk11a.shangdaast.library;

import com.jk11a.shangdaast.R;
import com.jk11a.shangdaast.subject.Subject;
import com.jk11a.shangdaast.user.*;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;



public class lib_search extends Activity {
	private TextView tv_bookname;
	@Override
	  public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.lib_search);
	        tv_bookname=(TextView)findViewById(R.id.lib_search_bookname);
	        tv_bookname.setText(getIntent().getStringExtra("bookname"));
	        }
	

	  public void login(View v){
		  Intent intent =new Intent();   //退出app，跳转到登录首界面
		  intent.setClass(lib_search.this , LoginActivity.class);
		  startActivity(intent);
	  }
	
	public void showAllSubject(View v){  //跳转到课程管理
   	 Intent intent=new Intent();
		  intent.setClass(lib_search.this,Subject.class);
		  startActivity(intent);
    }
 public void library(View v){        //跳转到图书管理
   	 Intent intent=new Intent();
		  intent.setClass(lib_search.this,Library.class);
		  startActivity(intent);
   }

}
